//
// Created by Zain on 2016/9/9.
//

#ifndef ZAINTL_INPUTSTREAM_H
#define ZAINTL_INPUTSTREAM_H

#include "ShareHeaders.h"

namespace ZainTL {
    class InputStream {
    protected:
        std::istream *mIStream = NULL;

    public:
        InputStream(const char *path);

        virtual ~InputStream();

        virtual std::streamsize available()=0;

        virtual std::streamsize read(char *buffer, std::streamsize bufferSize)=0;
    };
}

#endif //ZAINTL_INPUTSTREAM_H
